package com.xcity.game.item.effect;

import com.xcity.db.entity.Player;
import com.xcity.game.common.Cause;
import com.xcity.game.item.GameItem;
import com.xcity.game.item.ItemEffect;
import com.xcity.game.item.listener.BagListener;

/**
 * 损失金币
 * @author YangLi
 *
 */
public class LoseGoldEffect implements ItemEffect {

	@Override
	public boolean effect(Player player, GameItem item, int count, BagListener listener) {
		return player.costGold(item.getTemplate().getParameter(0) * count, Cause.USE_ITEM);
	}

}
